package com.atguigu.gmall.item.client;

import com.atguigu.gmall.common.result.Result;
import org.springframework.stereotype.Component;

/**
 * @author: 封捷
 * @create-date: 2022/8/24 15:19
 */
@Component
public class ItemDegradeFeignClient implements ItemFeignClient {
    @Override
    public Result getItem(Long skuId) {

        Result<Object> result = Result.fail();

        result.message("服务降级了");

        return result;
    }
}
